package com.yz.group1.group_1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yz.group1.group_1.entity.Department;
import com.yz.group1.group_1.mapper.DepartmentMapper;
import com.yz.group1.group_1.service.DepartmentService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {
    @Override
    public List<Department> listAllDepartments() {
        return baseMapper.selectList(null);
    }
}
